Skip to content

Improve error message and add debug logging for cast failures#63

Merged
phillipleblanc merged 3 commits into
spiceai-50from
phillip/251204-add-logging-on-schema-cast-failure
Dec 5, 2025
Merged

Improve error message and add debug logging for cast failures#63
phillipleblanc merged 3 commits into
spiceai-50from
phillip/251204-add-logging-on-schema-cast-failure

Conversation

@phillipleblanc
Copy link
Copy Markdown

Improves the error messaged returned when casting a record batch into an expected schema fails. Also adds debug/trace logging for more details on which specifically has failed.

Add tracing statements to try_cast_to() that log schema information
and record batch contents when errors occur:
- debug! logs actual and expected schemas on any error
- trace! logs full record batch contents for detailed debugging

This helps diagnose schema mismatch issues during record batch casting.
@phillipleblanc phillipleblanc self-assigned this Dec 4, 2025
@phillipleblanc phillipleblanc added the enhancement New feature or request label Dec 4, 2025
@phillipleblanc phillipleblanc merged commit afcbd1c into spiceai-50 Dec 5, 2025
7 of 11 checks passed
@phillipleblanc phillipleblanc deleted the phillip/251204-add-logging-on-schema-cast-failure branch December 5, 2025 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants